package com.jzo2o.customer.controller.open;

import com.jzo2o.customer.model.dto.request.InstitutionRegisterReqDTO;
import com.jzo2o.customer.model.dto.response.LoginResDTO;
import com.jzo2o.customer.service.IRegistrasieService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @Author mr.luo
 * @Date 01 7月 2025 16:03
 */
@RestController("InstitusioneleController")
@RequestMapping("/open/serve-provider")
@Api(tags = "白名单接口 - 客户登录相关接口")
public class InstitusioneleController {
    @Autowired
    private IRegistrasieService institutionRegister;


    @PostMapping("/institution/register")
    @ApiOperation("机构注册")
    public LoginResDTO institutionRegister(@RequestBody InstitutionRegisterReqDTO dto) {
        return institutionRegister.institutionRegister(dto);
    }
}
